import request from "utils/request";

const buildingApi = {};

//分页版
buildingApi.pageList = function (listQuery) {
   return request({
      url: "/houses/pageList.do",
      method: "get",
      params: listQuery
   });
};

buildingApi.add = function (data) {
   return request.postData("/houses/add.do", data);
};

buildingApi.update = function (data) {
   return request.postData("/houses/update.do", data);
};

buildingApi.delete = function (keyId) {
   return request.postData("/houses/delete.do", {keyId});
};

export default buildingApi;
